
var Mock = require('mockjs')

//用户信息
module.exports = (req, res) => {
	//query、body = 前端请求传入的参数
	//let {userName,passWord}= req.body;

	let user = 'huanghuisong'
	let pass = '123456'
    //var req_json = eval('(' + req.body + ')');  var obj = str.parseJSON();
      console.log(req)
	  var data = {
	  	body: req.body,
	  	//user: req_body,
	  	accd:"2345"
		};

		// if(user == req.body.userName || pass == req.body.passWord){
		// 	data.message = '登入成功'
		// }else{
		// 	data.message = '登入失败'
		// 	data.code = -101
		// }
		res.jsonp(Mock.mock(data))
};
